<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <%@include file="frame/common.jsp" %>
    <title>API订阅审批详情</title>
    <style>
        .applyinfo{
            padding: 20px 0;
        }
        
        .nav-tabs>li.active>a{
        	background-color:#E6E5E5;
        }

        .form-horizontal .control-label {
            text-align: left;
        }

        .form-horizontal textarea{
            resize: none;
        }

        #tenantInfoTable table tbody tr td:nth-child(odd){
            vertical-align: middle;
            text-align: center;
        }

    </style>
    <script type="text/javascript" src="<%=path %>/pure/resources/nlpt/js/tenant-approval.js"></script>
    <script type="text/javascript">
    $(function(){
    	//loadtenantType();
    	validateForm();
    })
    
    function validateForm(){
    	debugger
    	$("#seform").bootstrapValidator({
    		fields:{
    			remark:{
    				validators:{
    					notEmpty:{
    						message:'请输入审批意见'
    					},
    					stringLength: {
    						min: 0,
    						max: 1024,
    						message: '请输入一个长度最多是 1024 的字符串'
    					}
    				}
    			}
    		}
    	});
    }
    </script>
</head>
<body>
<div class="content">
    <div class="container">
        <div class="row applyinfo">
            <div class="col-md-3"><label>标题：</label><span>API订阅审批详情</span></div>
            <div class="col-md-3"><label>申请时间：</label><span id = "createDate">${subInfo.createTime}</span></div>
        </div>

        <div>

            <!-- Nav tabs -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">API订阅申请</a></li>
            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="home">

                    <table class="table table-bordered table-hover ">
                        <thead>
                        <tr>
                            <th>API提供者</th>
                       		<th>API名称</th>	
                            <th>API版本</th>
                            <th>API订阅者</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                        	<td>${subInfo.provider}<td>
                        	<td>${subInfo.apiname}<td>
                        	<td>${subInfo.apiversion}<td>
                        	<td>${subInfo.subscriber}<td>
						</tr>
                        </tbody>
                    </table>
                        <div class="form-group">
                          	<div class="col-sm-offset-1 col-sm-1">
                                <button type="submit" class="btn btn-default" onclick="javascript:history.go(-1)">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>